<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>客户跟进历史管理</title>
    <#include "../common/link.ftl">
    <script>
        $(function () {
            $('.btn-primary').submit();

        })
    </script>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <#include "../common/navbar.ftl">
    <!-- 定义一个变量 菜单回显-->
<#--<c:set var="currentMenu" value="customertracehistory"/>
${currentMenu}-->
    <#assign currentMenu="CustomerTraceHistory"/>

    <#include "../common/menu.ftl">
    <div class="content-wrapper">
        <section class="content-header">
            <h1>潜在客户管理</h1>
        </section>
        <section class="content">
            <div class="box">
                <!--高级查询--->
                <div style="margin: 10px;">
                    <form class="form-inline" id="searchForm" action="/customerTraceHistory/list.do" method="post">
                        <input type="hidden" name="currentPage" id="currentPage" value="1">
                        <div class="form-group">
                            <label for="keyword">关键字:</label>
                            <input type="text" class="form-control" id="keyword" name="keyword" value="${qo.keyword!}"
                                   placeholder="请输入姓名/电话">
                        </div>
                        <button id="btn_query" class="btn btn-primary">
                            <span class="glyphicon glyphicon-search"></span>查询
                        </button>
                    </form>
                </div>
                <!--编写内容-->
                <div class="box-body table-responsive no-padding ">
                    <table style="text-align: center" class="table table-hover table-bordered">
                        <tr>
                            <th>编号</th>
                            <th>姓名</th>
                            <th>跟进日期</th>
                            <th>跟进内容</th>
                            <th>跟进方式</th>
                            <th>跟进结果</th>
                            <th>录入人</th>
                        </tr>
                    <#--<c:forEach items="${result.list}" var="customertracehistory" varStatus="vs">-->
                        <#list result.list as customertracehistory>
                            <tr>
                                <td>${customertracehistory_index+1}</td>
                                <td>${(customertracehistory.customer.name)!}</td>
                                <td>${(customertracehistory.traceTime?string('yyyy-MM-dd'))!}</td>
                                <td>${(customertracehistory.traceDetails)!}</td>
                                <td>${(customertracehistory.traceType.title)!}</td>
                                <td>${(customertracehistory.tr)!}</td>
                                <td>${(customertracehistory.inputUser.name)!}</td>
                            </tr>
                        </#list>
                    <#--</c:forEach>-->
                    </table>
                    <!--分页-->
                    <#include "../common/page.ftl">
                </div>
            </div>
        </section>
    </div>
    <#include "../common/footer.ftl">
</div>
</body>
</html>












